﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B3D RID: 2877
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MissionStatusBySceneInfo : IMessage<MissionStatusBySceneInfo>, IMessage, IEquatable<MissionStatusBySceneInfo>, IDeepCloneable<MissionStatusBySceneInfo>, IBufferMessage
	{
		// Token: 0x17002448 RID: 9288
		// (get) Token: 0x0600809C RID: 32924 RVA: 0x00157120 File Offset: 0x00155320
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MissionStatusBySceneInfo> Parser
		{
			get
			{
				return MissionStatusBySceneInfo._parser;
			}
		}

		// Token: 0x17002449 RID: 9289
		// (get) Token: 0x0600809D RID: 32925 RVA: 0x00157127 File Offset: 0x00155327
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MissionStatusBySceneInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700244A RID: 9290
		// (get) Token: 0x0600809E RID: 32926 RVA: 0x00157139 File Offset: 0x00155339
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MissionStatusBySceneInfo.Descriptor;
			}
		}

		// Token: 0x0600809F RID: 32927 RVA: 0x00157140 File Offset: 0x00155340
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionStatusBySceneInfo()
		{
		}

		// Token: 0x060080A0 RID: 32928 RVA: 0x00157180 File Offset: 0x00155380
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionStatusBySceneInfo(MissionStatusBySceneInfo other) : this()
		{
			this.finishedMainMissionIdList_ = other.finishedMainMissionIdList_.Clone();
			this.mainMissionMcvList_ = other.mainMissionMcvList_.Clone();
			this.unfinishedMainMissionIdList_ = other.unfinishedMainMissionIdList_.Clone();
			this.subMissionStatusList_ = other.subMissionStatusList_.Clone();
			this.disabledMainMissionIdList_ = other.disabledMainMissionIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060080A1 RID: 32929 RVA: 0x001571F9 File Offset: 0x001553F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionStatusBySceneInfo Clone()
		{
			return new MissionStatusBySceneInfo(this);
		}

		// Token: 0x1700244B RID: 9291
		// (get) Token: 0x060080A2 RID: 32930 RVA: 0x00157201 File Offset: 0x00155401
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> FinishedMainMissionIdList
		{
			get
			{
				return this.finishedMainMissionIdList_;
			}
		}

		// Token: 0x1700244C RID: 9292
		// (get) Token: 0x060080A3 RID: 32931 RVA: 0x00157209 File Offset: 0x00155409
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MainMissionCustomValue> MainMissionMcvList
		{
			get
			{
				return this.mainMissionMcvList_;
			}
		}

		// Token: 0x1700244D RID: 9293
		// (get) Token: 0x060080A4 RID: 32932 RVA: 0x00157211 File Offset: 0x00155411
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnfinishedMainMissionIdList
		{
			get
			{
				return this.unfinishedMainMissionIdList_;
			}
		}

		// Token: 0x1700244E RID: 9294
		// (get) Token: 0x060080A5 RID: 32933 RVA: 0x00157219 File Offset: 0x00155419
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Mission> SubMissionStatusList
		{
			get
			{
				return this.subMissionStatusList_;
			}
		}

		// Token: 0x1700244F RID: 9295
		// (get) Token: 0x060080A6 RID: 32934 RVA: 0x00157221 File Offset: 0x00155421
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DisabledMainMissionIdList
		{
			get
			{
				return this.disabledMainMissionIdList_;
			}
		}

		// Token: 0x060080A7 RID: 32935 RVA: 0x00157229 File Offset: 0x00155429
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MissionStatusBySceneInfo);
		}

		// Token: 0x060080A8 RID: 32936 RVA: 0x00157238 File Offset: 0x00155438
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MissionStatusBySceneInfo other)
		{
			return other != null && (other == this || (this.finishedMainMissionIdList_.Equals(other.finishedMainMissionIdList_) && this.mainMissionMcvList_.Equals(other.mainMissionMcvList_) && this.unfinishedMainMissionIdList_.Equals(other.unfinishedMainMissionIdList_) && this.subMissionStatusList_.Equals(other.subMissionStatusList_) && this.disabledMainMissionIdList_.Equals(other.disabledMainMissionIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060080A9 RID: 32937 RVA: 0x001572CC File Offset: 0x001554CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.finishedMainMissionIdList_.GetHashCode();
			num ^= this.mainMissionMcvList_.GetHashCode();
			num ^= this.unfinishedMainMissionIdList_.GetHashCode();
			num ^= this.subMissionStatusList_.GetHashCode();
			num ^= this.disabledMainMissionIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060080AA RID: 32938 RVA: 0x00157338 File Offset: 0x00155538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060080AB RID: 32939 RVA: 0x00157340 File Offset: 0x00155540
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060080AC RID: 32940 RVA: 0x0015734C File Offset: 0x0015554C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.unfinishedMainMissionIdList_.WriteTo(ref output, MissionStatusBySceneInfo._repeated_unfinishedMainMissionIdList_codec);
			this.subMissionStatusList_.WriteTo(ref output, MissionStatusBySceneInfo._repeated_subMissionStatusList_codec);
			this.mainMissionMcvList_.WriteTo(ref output, MissionStatusBySceneInfo._repeated_mainMissionMcvList_codec);
			this.finishedMainMissionIdList_.WriteTo(ref output, MissionStatusBySceneInfo._repeated_finishedMainMissionIdList_codec);
			this.disabledMainMissionIdList_.WriteTo(ref output, MissionStatusBySceneInfo._repeated_disabledMainMissionIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060080AD RID: 32941 RVA: 0x001573C4 File Offset: 0x001555C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.finishedMainMissionIdList_.CalculateSize(MissionStatusBySceneInfo._repeated_finishedMainMissionIdList_codec);
			num += this.mainMissionMcvList_.CalculateSize(MissionStatusBySceneInfo._repeated_mainMissionMcvList_codec);
			num += this.unfinishedMainMissionIdList_.CalculateSize(MissionStatusBySceneInfo._repeated_unfinishedMainMissionIdList_codec);
			num += this.subMissionStatusList_.CalculateSize(MissionStatusBySceneInfo._repeated_subMissionStatusList_codec);
			num += this.disabledMainMissionIdList_.CalculateSize(MissionStatusBySceneInfo._repeated_disabledMainMissionIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060080AE RID: 32942 RVA: 0x0015744C File Offset: 0x0015564C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MissionStatusBySceneInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.finishedMainMissionIdList_.Add(other.finishedMainMissionIdList_);
			this.mainMissionMcvList_.Add(other.mainMissionMcvList_);
			this.unfinishedMainMissionIdList_.Add(other.unfinishedMainMissionIdList_);
			this.subMissionStatusList_.Add(other.subMissionStatusList_);
			this.disabledMainMissionIdList_.Add(other.disabledMainMissionIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060080AF RID: 32943 RVA: 0x001574C9 File Offset: 0x001556C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060080B0 RID: 32944 RVA: 0x001574D4 File Offset: 0x001556D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num <= 10U)
					{
						if (num == 8U || num == 10U)
						{
							this.unfinishedMainMissionIdList_.AddEntriesFrom(ref input, MissionStatusBySceneInfo._repeated_unfinishedMainMissionIdList_codec);
							continue;
						}
					}
					else
					{
						if (num == 42U)
						{
							this.subMissionStatusList_.AddEntriesFrom(ref input, MissionStatusBySceneInfo._repeated_subMissionStatusList_codec);
							continue;
						}
						if (num == 50U)
						{
							this.mainMissionMcvList_.AddEntriesFrom(ref input, MissionStatusBySceneInfo._repeated_mainMissionMcvList_codec);
							continue;
						}
					}
				}
				else if (num <= 90U)
				{
					if (num == 88U || num == 90U)
					{
						this.finishedMainMissionIdList_.AddEntriesFrom(ref input, MissionStatusBySceneInfo._repeated_finishedMainMissionIdList_codec);
						continue;
					}
				}
				else if (num == 112U || num == 114U)
				{
					this.disabledMainMissionIdList_.AddEntriesFrom(ref input, MissionStatusBySceneInfo._repeated_disabledMainMissionIdList_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003136 RID: 12598
		private static readonly MessageParser<MissionStatusBySceneInfo> _parser = new MessageParser<MissionStatusBySceneInfo>(() => new MissionStatusBySceneInfo());

		// Token: 0x04003137 RID: 12599
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003138 RID: 12600
		public const int FinishedMainMissionIdListFieldNumber = 11;

		// Token: 0x04003139 RID: 12601
		private static readonly FieldCodec<uint> _repeated_finishedMainMissionIdList_codec = FieldCodec.ForUInt32(90U);

		// Token: 0x0400313A RID: 12602
		private readonly RepeatedField<uint> finishedMainMissionIdList_ = new RepeatedField<uint>();

		// Token: 0x0400313B RID: 12603
		public const int MainMissionMcvListFieldNumber = 6;

		// Token: 0x0400313C RID: 12604
		private static readonly FieldCodec<MainMissionCustomValue> _repeated_mainMissionMcvList_codec = FieldCodec.ForMessage<MainMissionCustomValue>(50U, MainMissionCustomValue.Parser);

		// Token: 0x0400313D RID: 12605
		private readonly RepeatedField<MainMissionCustomValue> mainMissionMcvList_ = new RepeatedField<MainMissionCustomValue>();

		// Token: 0x0400313E RID: 12606
		public const int UnfinishedMainMissionIdListFieldNumber = 1;

		// Token: 0x0400313F RID: 12607
		private static readonly FieldCodec<uint> _repeated_unfinishedMainMissionIdList_codec = FieldCodec.ForUInt32(10U);

		// Token: 0x04003140 RID: 12608
		private readonly RepeatedField<uint> unfinishedMainMissionIdList_ = new RepeatedField<uint>();

		// Token: 0x04003141 RID: 12609
		public const int SubMissionStatusListFieldNumber = 5;

		// Token: 0x04003142 RID: 12610
		private static readonly FieldCodec<Mission> _repeated_subMissionStatusList_codec = FieldCodec.ForMessage<Mission>(42U, Mission.Parser);

		// Token: 0x04003143 RID: 12611
		private readonly RepeatedField<Mission> subMissionStatusList_ = new RepeatedField<Mission>();

		// Token: 0x04003144 RID: 12612
		public const int DisabledMainMissionIdListFieldNumber = 14;

		// Token: 0x04003145 RID: 12613
		private static readonly FieldCodec<uint> _repeated_disabledMainMissionIdList_codec = FieldCodec.ForUInt32(114U);

		// Token: 0x04003146 RID: 12614
		private readonly RepeatedField<uint> disabledMainMissionIdList_ = new RepeatedField<uint>();
	}
}
